<br />
<table>
  <tbody>
    <tr>
	<!--
      <th>Passenger Number:</th>
      <td><?//php echo $px->getpx_number() ?> &nbsp;&nbsp;&nbsp;</td>
-->
      <th>Passenger Name:</th>
      <td><?php echo $px->getfirst_name().' '.$px->getlast_name() ?></td>
    </tr>
<!--
    <tr>
	  <th>Sex:</th>
	  <td><?//php echo $px->getsex() ?>&nbsp;&nbsp;&nbsp; </td>
	  <th>Age:</th>
	  <td><?//php echo $px->getage_to_date() ?></td>
	</tr>
	<tr>
	  <th>Birth Date:</th>
	  <td><?//php echo $px->getbirth_date() ?></td>
	</tr>
    <tr>
	  <th>Birth Place:</th>
	  <td><?//php echo $px->getbirth_place() ?></td>
	</tr>
	<tr>
	  <th>Member Since:</th>
	  <td><?//php echo $px->getcreated_at() ?></td>
	</tr>
-->
    <tr>
     <?php foreach ($add_list as $add): ?>
      <th>Address:</th>
      <tr>
	  <th></th><th>Unit No.:</th>
	  <td><?php echo $add->getunit_no() ?></td>
	  </tr>
	  <tr>
	  <th></th><th>Building Name:</th>
	  <td><?php echo $add->getbuilding_name() ?></td>
	  </tr>
	   <tr>
	  <th></th><th>Building No:</th>
	  <td><?php echo $add->getbuilding_no() ?></td>
	  </tr>
	  <tr>
	  <th></th><th>Street:</th>
	  <td><?php echo $add->getstreet() ?></td>
	  </tr>
	  	  <tr>
	  <th></th><th>Village/Subdivision:</th>
	  <td><?php echo $add->getvillage_subdivision() ?></td>
	  </tr>
	  	  <tr>
	  <th></th><th>Barangay:</th>
	  <td><?php echo $add->getbarangay() ?></td>
	  </tr>
	  	  <tr>
	  <th></th><th>City:</th>
	  <td><?php echo $add->getcity() ?></td>
	  </tr>
	  	  <tr>
	  <th></th><th>Zip Code:</th>
	  <td><?php echo $add->getzip_code() ?></td>
	  </tr>
	  	<tr>
	  <th></th><th>Type:</th>
	  <td><?php echo $add->gettype() ?></td>
	  </tr>
	  	<tr>
	  <th></th><th>Country:</th>
	  <td><?php echo $add->getcountry() ?></td>
	  </tr>	  
	  </tr>	  
    <?php endforeach; ?>
        <tr>
     <?php foreach ($phone_list as $phone): ?>
      <th>Contact Numbers:</th>
      <tr>
      <th><?php echo $phone->getphone_type() ?></th><td><?php echo $phone->getnumber() ?></td>
    </tr>
    </tr>
    <?php endforeach; ?>
      </tbody>
</table>
<a href="<?php echo url_for('px/edit?id='.$px['id']); ?>">Edit</a>

<br />

<br />

<!--
	<?php if ($px->getPerson()->getType()=='contact'): ?>
<table>
<?php $contact_person = $px->getPerson(); ?>

  <tr id="contact<?php echo $contact_person->getId()?>">
    <td><?php echo $px->getperson_id(); ?></td>
    <td><?php echo $contact_person->getFirstName(); ?></td>
</tr>
</table>
<a href="<?php echo url_for('px_contact/edit?px_id='.$contact_person->getId())?>">Edit Contact Person</a>
<?php else: ?>
<a href="<?php echo url_for('px_contact/new?px_id='.$px->getId())?>">New Contact Person</a>
<?php endif;?>
-->
<?php slot('submenu') ?>
<ul>
	<li><?php echo link_to(image_tag('contact info.png', array('title'=>"Contact Info", 'width'=>'65px')), 'px/show?id='.$px['id']) ?></li>
	<li><?php echo link_to(image_tag('personal info.png', array('title'=>"Personal Info", 'width'=>'65px')), 'px_personal/index?px_id='.$px['id']) ?></li>
	<li><?php echo link_to(image_tag('passport info.png', array('title'=>"Passport Info", 'width'=>'65px')), 'passport/index?px_id='.$px['id']) ?></li>
	<li><?php echo link_to(image_tag('visa.png', array('title'=>"Visa Info", 'width'=>'65px')), 'visa/index?px_id='.$px['id']) ?></li>
	<li><?php echo link_to(image_tag('other note.png', array('title'=>"Other Notes", 'width'=>'65px')), 'px_note/index?px_id='.$px['id']) ?></li>
</ul>
<?php end_slot() ?>



